package com.huobao.yunying.adapters;

import com.huobao.yunying.entity.Zhanqu;
import com.huobao.yunying.utils.ImageUtils;
import com.huobao.zhangying.R;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;
import joanzapata.android.BaseAdapterHelper;
import joanzapata.android.QuickAdapter;

public class Adapter_Zhanqu extends QuickAdapter<Zhanqu> {

	public Adapter_Zhanqu(Context context) {
		super(context, R.layout.item_zhanqu);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void convert(BaseAdapterHelper arg0, Zhanqu arg1) {
		ImageView imageView = arg0.getView(R.id.image);
		TextView textView = arg0.getView(R.id.textview);
		ImageUtils.loadimg(imageView, arg1.s_logo);
		textView.setText(arg1.s_name+arg1.s_zhg);
	}

}
